import request from '@/utils/request'
/**
 * @description 上传图片/boss/course/upload
 */
export const uploadFile = (
  data = {},
  onUploadProgress?: (progressEvent: ProgressEvent) => void
) => {
  return request({
    method: 'POST',
    url: '/boss/course/upload',
    data,
    onUploadProgress
  })
}
